home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software of the Month Club 2000 October
/
Software of the Month - Ultimate Collection Shareware 277.iso
/
pc
/
PROGRAMS
/
UTILITY
/
WINLINUX
/
DATA1.CAB
/
sbin_-_Static_Binary_Files
/
IPFWADM
< prev
next >
Wrap
Text File
|
1999-09-17
|
532b
|
14 lines
#!/bin/sh
#
# ipfwadm-2.3.0 is used for 2.0.x kernels, while ipchains is used for newer
# kernels. This shell script determines which kernel version is running and
# calls ipfwadm-2.3.0 (if the kernel is 2.0.x), or ipfwadm-wrapper (if the
# kernel is 2.1.x or 2.2.x). ipfwadm-wrapper is another script which
# accepts ipfwadm syntax and makes the equivalent calls to ipchains.
if [ "`uname -r | cut -d . -f 1-2`" = "2.0" ]; then # 2.0 kernel
/sbin/ipfwadm-2.3.0 $*
else # probably a newer kernel
/sbin/ipfwadm-wrapper $*
fi